import { createApp } from 'vue'
import App from './App.vue'
import store from './store'
import router from './router'
import Vant from 'vant';
import 'vant/lib/index.css';
import axios from 'axios';
import VueAxios from 'vue-axios'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn';
import '@/utils/codeoss-theme.css';
import ComponentFactory from '@/mcomponents/ComponentFactory.vue'
import FormDesigner from '@/views/devpage/webide/page/formdesigner/FormDesigner.vue';
import MFormDesigner from '@/views/devpage/webide/page/mformdesigner/FormDesigner.vue';
import ModelFormPage from '@/views/devpage/webide/model/ModelFormPage.vue';
import WorkflowDesigner from '@/views/devpage/webide/workflow/workflowdesigner/WorkflowDesigner.vue';
import DetailReportDesigner from '@/views/devpage/webide/report/detailreport/DetailReportDesigner.vue';
import SummaryReportDesigner from '@/views/devpage/webide/report/summaryreport/SummaryReportDesigner.vue';
import MPageComponent from '@/mcomponents/PageComponent.vue';
import PageComponent from '@/components/PageComponent.vue'
import WorkflowTaskManagement from '@/views/clientpage/WorkflowTaskManagement.vue';
import MWorkflowTaskManagement from '@/views/page/mobile/MWorkflowTaskManagement.vue';
import RelUserRolePage from '@/views/clientpage/RelUserRolePage.vue';
import RelRoleMenuPage from '@/views/clientpage/RelRoleMenuPage.vue';
import RelRoleMMenuPage from '@/views/clientpage/RelRoleMMenuPage.vue';
import RelRoleOrgPage from '@/views/clientpage/RelRoleOrgPage.vue';
import AttachmentPage from '@/views/clientpage/AttachmentPage.vue';
import ImportFilePage from '@/views/clientpage/ImportFilePage.vue';
import AdvanceQueryPage from '@/views/clientpage/AdvanceQueryPage.vue';
import DocReportPage from '@/views/clientpage/DocReportPage.vue';
import ResultPage from '@/views/clientpage/ResultPage.vue';

import MMenu from '@/views/page/mobile/MMenu.vue';
import MMy from '@/views/page/mobile/MMy.vue';

import ModelListPage from '@/views/devpage/webide/ModelListPage.vue';
import PageListPage from '@/views/devpage/webide/PageListPage.vue';
import ReportListPage from '@/views/devpage/webide/ReportListPage.vue';
import WorkflowListPage from '@/views/devpage/webide/WorkflowListPage.vue';
import ApplicationPage from '@/views/devpage/webide/ApplicationPage.vue';

import PageContainer from '@/views/page/components/PageContainer.vue';


var app=createApp(App);
app.use(ElementPlus, {
  locale: zhCn,
})
app.component("mobile-component-factory",ComponentFactory);
app.component("form-designer",FormDesigner);
app.component("m-form-designer",MFormDesigner);
app.component("model-form-page",ModelFormPage);
app.component("workflow-designer",WorkflowDesigner);
app.component("detail-report-designer",DetailReportDesigner);
app.component("summary-report-designer",SummaryReportDesigner);
app.component("mobile-page-component",MPageComponent);
app.component("my-page-component",PageComponent);
app.component("workflow-task-management",WorkflowTaskManagement);
app.component("m-workflow-task-management",MWorkflowTaskManagement);
app.component("rel_user_role_page",RelUserRolePage);
app.component("rel_role_menu_page",RelRoleMenuPage);
app.component("rel_role_mobile_menu_page",RelRoleMMenuPage);
app.component("rel_role_org_page",RelRoleOrgPage);
app.component("advance_query_page",AdvanceQueryPage);
app.component("client-page-attachment-page",AttachmentPage);
app.component("import-file-page",ImportFilePage);
app.component("mmenu-page",MMenu);
app.component("mmy-page",MMy);
app.component("model-list-page",ModelListPage);
app.component("page-list-page",PageListPage);
app.component("report-list-page",ReportListPage);
app.component("workflow-list-page",WorkflowListPage);
app.component("application-page",ApplicationPage);
app.component("page_container",PageContainer);
app.component("doc-report-page",DocReportPage);
app.component("result-page",ResultPage);
app.use(router).use(store).use(ElementPlus).use(Vant).use(VueAxios, axios).mount('#app');
